﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace PrinteMaster
{
    public partial class 老板模式 : Form
    {
        public 老板模式()
        {
            InitializeComponent();
        }
        public static bool isBossMode = false;
        private void button1_Click(object sender, EventArgs e)
        {
            if (textBox1.Text.Equals("wddn190"))
            {
                isBossMode = true;
                MessageBox.Show("进入老板模式成功!别忘了走之前退出哦~");
                客服窗口.getInstance().inputBossMode();
                this.Close();
            }
            else
            {
                MessageBox.Show("老板密码输入错误！");
            }
        }

        private void 老板模式_KeyUp(object sender, KeyEventArgs e)
        {
            //if(
        }
        private void OnKeyUp(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.Enter)
            {
                button1_Click(null, null);
                this.Close();
            }
        }

        private void 老板模式_Load(object sender, EventArgs e)
        {
            textBox1.KeyUp += OnKeyUp;
            button1.KeyUp += OnKeyUp;
            this.KeyUp += OnKeyUp;
        }
    }
}
